package com.dynamicarray;

/**
 * Created by 27931 on 2020/7/18.
 */
public class Test {


    public static void main(String[] args) {
        ArrayList arrayList=new ArrayList();
        arrayList.add(15);
        arrayList.add(16);
        arrayList.add(17);
        arrayList.add(18);
        arrayList.add(19);

        arrayList.add(arrayList.size(),20);
        System.out.println(arrayList);
        arrayList.set(3,80);
        System.out.println(arrayList);
    }
}
